package com.ruoyi.point.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 作品评论对象 comments
 * 
 * @author lpt 
 * @date 2025-08-14
 */
@Alias("pointComment")
public class Comments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    private Integer id;

    /** 评论用户ID */
    @Excel(name = "评论用户ID")
    private Integer userId;

    /** 目标类型（1-课程，2-菜谱，3-作品） */
    @Excel(name = "目标类型", readConverterExp = "1=-课程，2-菜谱，3-作品")
    private Integer targetType;

    /** 目标ID */
    @Excel(name = "目标ID")
    private Integer targetId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论点赞数 */
    @Excel(name = "评论点赞数")
    private Integer likeCount;

    /** 是否删除：0正常 1删除 */
    private Integer del;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setTargetType(Integer targetType) 
    {
        this.targetType = targetType;
    }

    public Integer getTargetType() 
    {
        return targetType;
    }

    public void setTargetId(Integer targetId) 
    {
        this.targetId = targetId;
    }

    public Integer getTargetId() 
    {
        return targetId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setLikeCount(Integer likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Integer getLikeCount() 
    {
        return likeCount;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("targetType", getTargetType())
            .append("targetId", getTargetId())
            .append("content", getContent())
            .append("likeCount", getLikeCount())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .toString();
    }
}
